package com.tobe.demo;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class HelloWorld {
	public static void main (String [] args) {
		Display display = new Display ();
		Shell shell = new Shell(display);
		shell.setText(Messages.getString("HelloWorld.0")); //$NON-NLS-1$
		shell.pack();
		shell.open ();
		
		while (!shell.isDisposed ()) {
			if (!display.readAndDispatch ()) {//查看时间队列并分发事件
				display.sleep ();
			}
		}
		display.dispose ();
	}
}
